﻿using System;

namespace HZY.Models
{
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;

    [Table(nameof(Device))]
    public class Device
    {
        [Key]
        public Guid Device_ID { get; set; } = Guid.Empty;

        /// <summary>
        /// DtuId => 备注:Device_DtuID
        /// </summary>
        public string Device_DtuID { get; set; }

        /// <summary>
        /// 在线状态 => 备注:Device_OnlineStatus
        /// </summary>
        public EDevice_OnlineStatus Device_OnlineStatus { get; set; } = EDevice_OnlineStatus.离线;

        /// <summary>
        /// 备注 => 备注:Device_Remarks
        /// </summary>
        public string Device_Remarks { get; set; }

        /// <summary>
        /// 设备类型ID
        /// </summary>
        public Guid? Device_DeviceTypeID { get; set; }

        /// <summary>
        /// 终端ID
        /// </summary>
        public Guid? Device_TerminalID { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [DatabaseGenerated(DatabaseGeneratedOption.Computed)]
        public DateTime? Device_CreateTime { get; set; }

    }


    public enum EDevice_OnlineStatus
    {
        在线 = 1,
        离线
    }



}